[IA64] Compliation work around for sparsemem
authorAlex Williamson <alex.williamson@hp.com>
Thu, 3 May 2007 20:14:41 +0000 (14:14 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Thu, 3 May 2007 20:14:41 +0000 (14:14 -0600)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
linux-2.6-xen-sparse/include/asm-ia64/maddr.h

index c43348f26a9babad5b64d5f96ee1ad47fdcab8b2..be7242267a46ce32916b27b672e7f46d85ef3431 100644 (file)
@@ -65,6 +65,15 @@ machine_to_phys_for_dma(unsigned long machine)
        return phys;
 }
 
+#ifdef CONFIG_SPARSEMEM
+/*
+ * When CONFIG_SPARSEMEM=y, pfn_valid() is defined in
+ * linux/include/linux/mmzone.h. Hoever #include <linux/mmzone.h>
+ * causes the header inclusion hell.
+ */
+static inline int pfn_valid(unsigned long pfn);
+#endif
+
 static inline unsigned long
 mfn_to_local_pfn(unsigned long mfn)
 {